go/scanner.Scanner.error (method)
22 uses
go/scanner (current package)
scanner.go#L78: s.error(s.offset, "illegal character NUL")
scanner.go#L89: s.error(s.offset, "illegal UTF-8 encoding (got UTF-16)")
scanner.go#L92: s.error(s.offset, "illegal UTF-8 encoding")
scanner.go#L95: s.error(s.offset, "illegal byte order mark")
scanner.go#L166: func (s *Scanner) error(offs int, msg string) {
scanner.go#L174: s.error(offs, fmt.Sprintf(format, args...))
scanner.go#L222: s.error(offs, "comment not terminated")
scanner.go#L271: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L286: s.error(offs+i2, "invalid column number: "+string(text[i2:]))
scanner.go#L296: s.error(offs+i, "invalid line number: "+string(text[i:]))
scanner.go#L468: s.error(s.offset, "invalid radix point in "+litname(prefix))
scanner.go#L475: s.error(s.offset, litname(prefix)+" has no digits")
scanner.go#L494: s.error(s.offset, "exponent has no digits")
scanner.go#L497: s.error(s.offset, "hexadecimal mantissa requires a 'p' exponent")
scanner.go#L512: s.error(offs+i, "'_' must separate successive digits")
scanner.go#L600: s.error(offs, msg)
scanner.go#L612: s.error(s.offset, msg)
scanner.go#L621: s.error(offs, "escape sequence is invalid Unicode code point")
scanner.go#L639: s.error(offs, "rune literal not terminated")
scanner.go#L658: s.error(offs, "illegal rune literal")
scanner.go#L671: s.error(offs, "string literal not terminated")
scanner.go#L711: s.error(offs, "raw string literal not terminated")